<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2022/3/30
  Time: 11:29
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
<<%--h1>${msg}</h1>--%>
<%--<form action="/myFirst" method="get">--%>
<form action="/login" method="post">
    用户名<input type="text" name="username"><br>
    密码<input type="password" name="pass"><br>
    付钱<input type="number" name="money"/><br>
    <button type="submit">登录</button>
</form>
<hr/>
<form action="/passarray" method="post">
    用户名<input type="text" name="username"><br>
    爱好 <input type="checkbox" name="hobby" value="basketball">篮球
    <input type="checkbox" name="hobby" value="football">足球
    <input type="checkbox" name="hobby" value="tennis">网球
    <button type="submit">登录</button>
</form>
<hr/>
<h1>集合类型数据格式</h1>
<form action="/passList" method="post">
    用户名<input type="text" name="username"><br>
    爱好 <input type="checkbox" name="hobby" value="basketball">篮球
    <input type="checkbox" name="hobby" value="football">足球
    <input type="checkbox" name="hobby" value="tennis">网球
    <button type="submit">登录</button>
</form>
</body>
</html>